<?php namespace App\Models;

use CodeIgniter\Model;

class StudyLocationModel extends Model
{
    protected $table ='study_location';
    protected $primaryKey = 'id';
    protected $allowedFields = ['name', 'description', 'pic', 'price', 'district', 'intro_url', 'type', 'code_str', 'is_open', 'location_order'];

    public function getAllLocations()
    {
        return $this->findAll();
    }
}